package com.example.e11_q3;

/**
 * @desc:
 * @author: Shoko
 * @date: 2025/6/13
 */
public class TemporaryEmployee implements Employee {
    // 实际工作时长（小时）
    private int actualHours;
    // 部门
    private String department;
    // 小时工资（元/小时）
    private int hourlyWage;

    public TemporaryEmployee(int actualHours, String department, int hourlyWage) {
        this.actualHours = actualHours;
        this.department = department;
        this.hourlyWage = hourlyWage;
    }

    @Override
    public void accept(EmployeeVisitor visitor) {
        visitor.visit(this); // 触发访问者的具体方法
    }

    // Getter
    public int getActualHours() {
        return actualHours;
    }

    public String getDepartment() {
        return department;
    }

    public int getHourlyWage() {
        return hourlyWage;
    }
}
